package com.wf.action;

import com.opensymphony.xwork2.ActionSupport;
import org.apache.struts2.interceptor.ApplicationAware;
import org.apache.struts2.interceptor.RequestAware;
import org.apache.struts2.interceptor.SessionAware;

import java.util.Map;

/**
 * Created by wu on 14/12/23.
 */
public class ActionBase extends ActionSupport implements RequestAware,SessionAware,ApplicationAware {

    private static final long serialVersionUID = 1L;

    protected  Map<String,Object>  request;
    protected  Map<String,Object>  session;
    protected  Map<String,Object>  application;

    public Map<String, Object> getRequest() {
        return request;
    }

    public Map<String, Object> getSession() {
        return session;
    }

    public Map<String, Object> getApplication() {
        return application;
    }

    @Override
    public void setApplication(Map<String, Object> map) {
        application = map;
    }

    @Override
    public void setRequest(Map<String, Object> map) {
        request = map;
    }

    @Override
    public void setSession(Map<String, Object> map) {
        session = map;
    }
}
